package com.big.merchan;

import org.apache.catalina.connector.Connector;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.embedded.tomcat.TomcatConnectorCustomizer;
import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory;
import org.springframework.boot.web.servlet.server.ConfigurableServletWebServerFactory;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.retry.annotation.EnableRetry;

@SpringBootApplication
@MapperScan("com.big.merchan.mapper")
@ComponentScan(basePackages = {"com.big","com.big.merchan.controller"})
@EnableDiscoveryClient
@EnableFeignClients(basePackages = "com.big")
//@EnableRetry //重试机制
public class MerchanApplication {

    public static void main(String[] args) {
        SpringApplication.run(MerchanApplication.class, args);
        System.out.println("**********商品初始化完成**********");

    }


}
